package ch7.ex;

public class Accout {
	private String no;
	private int money;

	public Accout(String no, int money) {
		super();
		this.no = no;
		this.money = money;
	}

	// 取钱
	public void withDraw(int qu) {
		this.money -= qu;
	}

	// 存钱
	public void deposit(int money) {
		this.money += money;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public int getMoney() {
		return money;
	}

	public void setMoney(int money) {
		this.money = money;
	}

}
